<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:p="http://primefaces.prime.com.tr/ui"
       xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition template="./Test.xhtml">



            <ui:define name="content">
              

                        <p:dataTable var="item" value="#{searchBean.searchTickets}"
                                     paginator="true" rows="5"
                                     paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                     rowsPerPageTemplate="5,10,15">
                            <f:facet name="header">
                                List Tickets!
                            </f:facet>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Tickets Id" />
                                </f:facet>
                                <h:outputText value="#{item.ticketsId}" />
                            </p:column>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Tickets Cat" />
                                </f:facet>
                                <h:outputText value="#{item.ticketsCategory.tcName}" />
                            </p:column>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Event" />
                                </f:facet>
                                <h:outputText value="#{item.event.eventTitle}" />
                            </p:column>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Email" />
                                </f:facet>
                                <h:outputText value="#{item.email}" />
                            </p:column>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Quantity" />
                                </f:facet>
                                <h:outputText value="#{item.quantity}" />
                            </p:column>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Time (h)" />
                                </f:facet>
                                <h:outputText value="#{item.time}" />
                            </p:column>

                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Status" />
                                </f:facet>
                                <h:outputText value="#{item.status}" />
                            </p:column>
                        </p:dataTable>

                  
            </ui:define>



        </ui:composition>

    </body>
</html>
